package com.jindun.paper.dao;

import java.util.Date;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.jindun.paper.model.BagOrderItem;
import com.jindun.paper.model.Client;
import com.jindun.paper.model.Order;

public interface BagOrderItemRepository extends JpaRepository<BagOrderItem, Integer> {
	List<BagOrderItem> findByBagOrderClientAndBagOrderCreateDateBetween (Client client, Date start, Date end);
	List<BagOrderItem> findByBagOrderOrderById(Order bagOrder);
	
}
